nav.top-bar(data-options="is_hover:false" data-topbar)
  ul.title-area
    li.name
      h1 
        = link_to '后台 Dashboard', admin_root_path
    li.toggle-topbar.menu-icon
      a href='#' Menu
  div.top-bar-section
    ul.left
      li class=active_for('admin/users', params[:controller])
        = link_to "用户管理", admin_users_path
      li class=active_for('admin/projects', params[:controller])
        = link_to "项目管理", admin_projects_path
      li class=active_for('admin/messages', params[:controller])
        = link_to "留言管理", admin_messages_path
      li class=active_for('admin/investors', params[:controller])
        = link_to "投资人申批", admin_investors_path
      li class=active_for('admin/recommends', params[:controller])
        = link_to "精品管理", admin_recommends_path
      li class=active_for('admin/city', params[:controller])
        = link_to "分站管理", admin_city_index_path
      li class=active_for('admin/aps', params[:controller])
        = link_to "广告管理", admin_aps_path
      li class=active_for('admin/invite_codes', params[:controller])
        = link_to "邀请码管理", admin_invite_codes_path
      li class=active_for('admin/law_iterms', params[:controller])
        = link_to "法律条款管理", admin_law_iterms_path 
    ul.right
      li
        = link_to "返回前台", root_path
      li
        = link_to current_user.name + '[ 退出 ]', destroy_user_session_path, :method=>'delete'
